/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;
/**
 *
 * @author ANH
 */
public class GameOver {
    public boolean isgameover;
    Image hen;
    Image gameover;
    public GameOver()
    {
        hen=gameover=null;
        isgameover=false;
    }
    public void loadGraphics(Image _hen,Image _gameover)
    {
        hen=_hen;
        gameover=_gameover;
    }
    public void Render(Graphics g)
    {
        int anchor = Graphics.TOP|Graphics.LEFT;
        if(isgameover)
        {
             g.drawImage(hen, 75, 70, anchor);
             g.drawImage(gameover, 42, 180, anchor);
        }
    }
    public void GameOver()
    {
        isgameover=true;
    }

}
